static int radius;
static int input_datum;
-static route_head* curr_track;
-static route_head* curr_route;
+static const route_head* curr_track;
+static const route_head* curr_route;
/* placeholders for options */
static void
write_route_hdr_cb(const route_head* rte)
{
- curr_route = const_cast<route_head*>(rte);
+ curr_route = rte;
curr_index++;
if (curr_index != target_index) {
return;
write_track_hdr_cb(const route_head* trk)
{
track_info_flag = 0;
- curr_track = const_cast<route_head*>(trk);
+ curr_track = trk;
curr_index++;
if (curr_index != target_index) {
const char* cur;
double* numres = unk;
int numind = 0;
- char* buff;
+ char* buff = nullptr;
if (strchr(instr, ',') != nullptr) {
char* c;
while ((c = strchr(buff, ','))) {
*c = '.';
}
+ cur = buff;
} else {
- buff = const_cast<char*>(instr);
+ cur = instr;
}
- cur = buff;
-
while (cur && *cur) {
switch (*cur) {
case 'n':
*outlon *= lonsign;
}
}
- if (buff != instr) {
+ if (buff) {
xfree(buff);
}
}
if (case_ignore_strcmp(val, ap->argstring) == 0) {
c = "";
} else {
- c = const_cast<char*>(val);
+ c = val;
}
switch (ap->argtype & ARGTYPE_TYPEMASK) {
if (opt) {
found = 1;
assign_option(svecname, ap, opt);
- xfree(const_cast<char*>(opt));
+ xfree(opt);
continue;
}
}
if (opt) {
found = 1;
assign_option(svecname, ap, opt);
- xfree(const_cast<char*>(opt));
+ xfree(opt);
continue;
}
}